home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vcls
/
wfc007.000
/
include
/
cnetwork.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
1996-04-08
|
899b
|
40 lines
#if ! defined( NETWORK_CLASS_HEADER )
/*
** Author: Samuel R. Blackburn
** CI$: 76300,326
** Internet: sammy@sed.csc.com
**
** You can use it any way you like.
*/
#define NETWORK_CLASS_HEADER
class CNetwork : public CObject
{
DECLARE_SERIAL( CNetwork )
protected:
LPWSTR m_WideMachineName;
CString m_MachineName;
DWORD m_ErrorCode;
public:
CNetwork( LPCTSTR machine_name = NULL );
virtual ~CNetwork();
virtual void Close( void );
virtual DWORD GetErrorCode( void ) const;
virtual LPCTSTR GetMachineName( void );
virtual void Open( LPCTSTR machine_name = NULL );
virtual void Serialize( CArchive& archive );
operator LPCWSTR() const { return( m_WideMachineName ); }
operator LPWSTR() const { return( m_WideMachineName ); }
};
#endif // NETWORK_CLASS_HEADER